@use "sass:math";
*{
    padding: 0;
    margin: 0;
}
a{
    text-decoration: none;
}
ul{
    list-style: none;
}
.w{
    width: 1200px;
    height: 100%;
    margin: 0 auto;
}

//导航栏
.shortcut{
    width: 100%;
    height: 36px;
    background-color: #f9f9f9;
    .layout{
        @extend .w;
        height: 36px;
        display: flex;
        justify-content: space-between;
        .s-sub, .s-main{
            height: 36px;
            & > ul{
                position: relative;
                & > li{
                    padding-right: 8px;
                }
                & > li+li{
                    ::before{
                        content: "|";
                        color: #afafaf;
                        margin-right: 8px;
                    }
                }
                & > li{
                    float: left;
                    line-height: 36px;

                    a {
                        color: #afafaf;
                        font: 12px/1.5 "Helvetica Neue",Helvetica,Arial,"Microsoft Yahei","Hiragino Sans GB","Heiti SC","WenQuanYi Micro Hei",sans-serif;
                    }
                }
                & > .a{
                    width: 74px;
                    position: absolute;
                    left: 409px;
                    top:12px;
                    font-size: 12px;
                    a{
                        color: #afafaf;
                    }
                    .b{
                        width: 150px;
                        height: 150px;
                        position: relative;
                        left: -100px;
                        background-color: #fff;
                        text-align: center;
                        p:first-child{
                            margin-top: 18px;
                        }
                        font-size: 16px;
                        p{
                            margin-top: 15px;
                            a{
                                color: #777;
                            }
                        }
                        z-index: 3;
                        display: none;
                    }
                }
                .hide{
                    float: left;
                    line-height: 36px;
                    margin-top: 12px;
                    :last-child{
                        display: none;
                    }
                    a{
                        display: block;
                        color: #afafaf;
                        font: 12px/1.5 "Helvetica Neue",Helvetica,Arial,"Microsoft Yahei","Hiragino Sans GB","Heiti SC","WenQuanYi Micro Hei",sans-serif;
                    }
                }

                
            }
        }
        .s-main{
            // li:last-child{
            //     background-color: #424242;
            // }
            li:nth-child(2){
                ::before{
                    content: "";
                }
            }
        }
    }
}

//logo
.header{
    width: 100%;
    height: 50px;
    padding: 10px 0;
    & > .layout{
        width: 1200px;
        height: 50px;
        margin: 0 auto;
        .logo{
            width: 260;
            height: 50px;
            line-height: 50px;
            overflow: hidden;
            a{
                float: left;
                margin-top: 4px;
                width: 120px;
                height: 41px;
                img{
                    width: 120px;
                    height: 41px;
                }
            }
            span{
                float: left;
                display: block;
                margin-left: 26px;
                font-size: 22px;
                color: #3a3a3a;
            }
        }
    }
}

//商品展示
.shoppingshow{
    width: 100%;
    overflow: hidden;
    background-color: #F25F39;
    .shoppingNav{
        width: 100%;
        height: 100px;
        background-color: #FC8F57;
        .wrap{
            width: 1200px;
            height: 100px;
            margin: 0 auto;
            overflow: hidden;
            display: flex;
            justify-content: space-around;
            align-items: center;
            //搜索框
            .sleft{
                width: 240px;
                height: 36px;
                background-color: #F0F0F0;
                border-radius: 24px;
                overflow: hidden;
                .searchBar{
                    width: 205px-2;
                    height: 35px-2;
                    float: left;
                    border: 1px solid transparent;
                    outline: none;
                    text-indent: 20px;
                    background-color: #f0f0f0;
                }
                .searchBtn{
                    width: 35px;
                    height: 36px;
                    line-height: 36px;
                    text-align: center;
                    .icon-sousuo{
                        font-size: 24px;
                        color: #222;
                    }
                }
            }
            .up,.down{
                width: 100px;
                height: 36px;
                button{
                    width: 100px;
                    height: 36px;
                    background-color: #fff;
                }
            }
            .change{
                width: 120px;
                height: 36px;
                select{
                    width: 120px;
                    height: 36px;
                }
            }
        }
    }
    .shoplist{
        width: 100%;
        .layout{
            width: 1200px;
            margin: 0 auto;
            overflow: hidden;
            ul{
                width: 1200px;
                margin-bottom: 20px;
                li{
                    float: left;
                    width: 290px;
                    height: 460px;
                    margin-right: 10px;
                    margin-top: 10px;
                    margin-bottom: 10px;
                    background-color: #fff;
                    a{
                        display: block;
                        width: 290px;
                        height: 460px;
                        overflow: hidden;
                        .gimg{
                            width: 290px;
                            height: 290px;
                            img{
                                width: 290px;
                                height: 290px;
                            }
                        }
                        p{
                            margin-top: 20px;
                            width: 290px;
                            height: 40px;
                            font-size: 16px;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 2;
                            line-height: 20px;
                            overflow: hidden;
                            color: #222;
                        }
                        .gprice{
                            margin: 30px auto 0;
                            width: 150px;
                            height: 36px;
                            border-radius: 10px;
                            background-color: #ca141d;
                            color: #fff;
                            text-align: center;
                            line-height: 36px;
                            font-size: 24px;
                        }
                    }
                }
            }
        }
    }
    .pagbox{
        width: 200px;
        height: 40px;
        margin: 0 auto 20px;
        display: flex;
        justify-content: center;
        .prev{
            width: 55px;
            height: 40px;
            color: #222;
        }
        span{
            display: block;
            width: 90px;
            height: 40px;
            line-height: 40px;
            text-align: center;
        }
        .next{
            width: 55px;
            height: 40px;
        }
    }
}